package hydrap2p.gui;

/**
 * A mock object whose only purpose is to provide some data for the startup manager panel to display.
 * 
 * @author Jared
 */
public class MockModule
{
	//different elements that will exist in a real module
	private String name;
	private boolean status;
	private boolean autostart;
	
	/**
	 * Constructor that initializes all the variables
	 * 
	 * @param name
	 * @param version
	 * @param status
	 * @param autostart
	 */
	public MockModule(String name, boolean status, boolean autostart)
	{
		this.name = name;
		this.status = status;
		this.autostart = autostart;
	}

	//getters
	public String getName() {
		return name;
	}

	public boolean getStatus() {
		return status;
	}

	public boolean getAutostart() {
		return autostart;
	}

	//setters
	public void setStatus(boolean status) {
		this.status = status;
	}

	public void setAutostart(boolean autostart) {
		this.autostart = autostart;
	}
	
	//converts the status boolean to an actual string
	public String getStatusAsString() {
		if (status) return "Started";
		return "Stopped";
	}
}
